]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Fix removing the active menu from PopupMenuManager
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Nov 2013 22:40:22 +0000 (23:40 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Nov 2013 23:09:50 +0000 (00:09 +0100)
Commit b42af9aa991eba5 changed the parameter list of _closeMenu()
to account for changes in the GrabHelper ungrab mechanism, but
didn't update other callers.

https://bugzilla.gnome.org/show_bug.cgi?id=709806

js/ui/popupMenu.js

index efff7f3386f4c47bfaf59f4cec8901866493d0b4..4a46d2f738aa39057930240c7f9a36c43bbce23d 100644 (file)
@@ -1114,7 +1114,7 @@ const PopupMenuManager = new Lang.Class({
 
     removeMenu: function(menu) {
         if (menu == this.activeMenu)
-            this._closeMenu(menu);
+            this._closeMenu(false, menu);
 
         let position = this._findMenu(menu);
         if (position == -1) // not a menu we manage